//
//  DeliveryDetailViewController.h
//  ;;
//
//  Created by TW on 14-11-14.
//  Copyright (c) 2014年 TW. All rights reserved.
//

#import "BaseViewController.h"
#import "AddressModel.h"

@protocol deliveryDetailViewDelegate <NSObject>

-(void)commitAddress;

@end

@interface DeliveryDetailViewController : BaseViewController<UITableViewDataSource,UITableViewDelegate,UITextFieldDelegate>

@property(retain,nonatomic)UITableView *chooseTableView;
@property(retain,nonatomic)UIView *glassView;

@property(retain,nonatomic)NSString *province;
@property(retain,nonatomic)NSString *city;
@property(retain,nonatomic)NSString *eara;
@property(retain,nonatomic)NSString *section;
@property(assign,nonatomic)BOOL isOff;
@property(retain,nonatomic)UIButton *button;

@property(retain,nonatomic)UITextField *nameTextField;
@property(retain,nonatomic)UITextField *phoneTextField;
@property(retain,nonatomic)UITextField *addressTextField;
@property(retain,nonatomic)UITextField *codeTextField;

@property(retain,nonatomic)AddressModel *addressModel;

@property(assign,nonatomic)id<deliveryDetailViewDelegate>delegate;

@property(retain,nonatomic)NSArray *provinceArray;
@property(retain,nonatomic)NSArray *cityArray;
@property(retain,nonatomic)NSArray *sectionArray;

@property(retain,nonatomic)UIButton *chooseButton;
@property(assign,nonatomic)NSInteger isEidt;
@property(assign,nonatomic)NSInteger isModify;


@property(retain,nonatomic)UIButton *saveButton;


@end
